import api from "@/utils/ajax";

export const getMemberListAPI = (params = {}) => {
    return api.$get("/cms/member", params)
}
/** 获取文章分组对应的分类统计 */
export const getMemberCountAPI = (params = {}) => {
    return api.$get("/cms/member-count", params)
}

export const addMemberAPI = (params = {}) => {
    return api.$post("/cms/member", params)
}

export const updateMemberAPI = (params = {}) => {
    return api.$post("/cms/member-change", params)
}


export const deleteMember = (params = {}) => {
    return api.$post("/cms/del-member", params)

}

/** 禁用会员的接口 */
export const inactiveMemberAPI = (params = {}) => {
    return api.$post("/cms/member-stop", params)
}

/** 激活会员的接口 */
export const activeMemberAPI = (params = {}) => {
    return api.$post("/cms/member-active", params)
}


/** 会员充值的接口 */
export const rechargeMemberAPI = (params = {}) => {
    return api.$post("/cms/member-recharge", params)
}